﻿using System;

namespace jSLCore.Service.Security
{
    public interface ISecurityManager
    {
        /// <summary>
        /// Must return remember code
        /// </summary>
        User Authorize(string login, string password);

        User AuthorizeByCode(Guid code);
        int[] GetPermissionSet(string userName);
        User GetUser(string login);
        bool IsUserHasPermission(string userName, int permission);
    }
}